﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:jSLCore.Client.Presentation.Controls"
    >
    
    <Style TargetType="Controls:ErrorBorder">
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="0"/>
    </Style>
    
    <Style TargetType="Controls:HelpBox">
        <Setter Property="Margin" Value="5"/>
    </Style>    
    <Style TargetType="Controls:LeftHeaderContainer">
        <Setter Property="Margin" Value="5,0,0,0"/>
    </Style>
    <Style TargetType="CheckBox">
        <Setter Property="Margin" Value="5"/>
    </Style>    
  
   
    
    <Style TargetType="ComboBox">
        <Setter Property="Margin" Value="5"/>
    </Style>
    
    <Style TargetType="TextBox">
        <Setter Property="Margin" Value="5"/>
    </Style>


    <Style TargetType="PasswordBox">
        <Setter Property="Margin" Value="5"/>
    </Style>

    <Style TargetType="Image">
        <Setter Property="Margin" Value="5"/>
    </Style>
    
    <Style TargetType="TextBlock">
        <Setter Property="Margin" Value="5"/>        
    </Style>
    
    <Style TargetType="Controls:ImageButton">
        <Setter Property="Margin" Value="5"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>        
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="Padding" Value="10,0,0,0"/>
    </Style>
    
    <Style TargetType="Controls:ImageGroupBox">
        <Setter Property="CornerRadius" Value="7"/>
        <Setter Property="Padding" Value="10"/>
        <Setter Property="BorderBrush" >
            <Setter.Value>
                <LinearGradientBrush EndPoint="1.062,0.899" StartPoint="0.287,0.56">
                    <GradientStop Color="#89CFE7FF"/>
                    <GradientStop Color="#DF2585E2" Offset="1"/>
                    <GradientStop Color="#FF70AFEC" Offset="0.767"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Margin" Value="7"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
    </Style>
    
    <Style TargetType="Controls:ImageHeader">
        <Setter Property="BorderBrush" Value="White"/>
        <Setter Property="CornerRadius" Value="5"/>
        <Setter Property="Background">
            <Setter.Value>                
                    <LinearGradientBrush EndPoint="1.062,0.899" StartPoint="0.287,0.56">
                        <GradientStop Color="#89CFE7FF"/>
                        <GradientStop Color="#DF2585E2" Offset="1"/>
                        <GradientStop Color="#FF70AFEC" Offset="0.767"/>
                    </LinearGradientBrush>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="Controls:jSLCloseDialogButton">
    	<Setter Property="Width" Value="48"/>
    	<Setter Property="Height" Value="48"/>
    	<Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
    	<Setter Property="RenderTransform">
    		<Setter.Value>
    			<TranslateTransform X="12" Y="-12"/>
    		</Setter.Value>
    	</Setter>
    	<Setter Property="Margin" Value="0"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
    </Style>

        <Style TargetType="Border">
       <Setter Property="Background">
        	<Setter.Value>
        		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        			<GradientStop Color="#FFF4F4F4" Offset="0"/>
        			<GradientStop Color="#FFECECEC" Offset="1"/>
        		</LinearGradientBrush>
        	</Setter.Value>
        </Setter>
        <Setter Property="BorderBrush" Value="#FF121212"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="7"/>
        <Setter Property="CornerRadius" Value="7"/>        
        <Setter Property="Margin" Value="10"/>
    </Style>    
</ResourceDictionary>
